<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>    
<%@page import="ro.dandanciu.webgallery.domainmodel.User"%>
<a href="/WebGallery">
<img width="800" height="130" border="0"
		src="../imgs/header.png"/>
</a>
<s:if test="<%=  String.valueOf(session.getAttribute(\"session_user\") != null) %>">
	<span id="welcome">
		<s:text name="header.welcome"></s:text>
		<a href="../users/Profile.action">
			<%
			    User user = (User)session.getAttribute("session_user");
			    if (user != null) {
			        if (user.getUserName() != null) {
			            out.write(user.getUserName());
			        } else if (user.getUserId() != null) {
			            out.write(user.getUserId());
			        }
			    }
			 %>
		</a>
	</span>
</s:if>